Added missing unlock() calls in LocalFile